package com.example.pluginmanager.service.impl;

import com.example.pluginmanager.dao.RoleMenuRelationDao;
import com.example.pluginmanager.entity.RoleMenuRelation;
import com.example.pluginmanager.service.RoleMenuRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ggy
 * date:2022/7/4
 */
@Service
public class RoleMenuRelationServiceImpl implements RoleMenuRelationService {

    @Autowired
    private RoleMenuRelationDao roleMenuRelationDao;

    @Override
    public List<RoleMenuRelation> listRoleMenuByRoleIds(List<String> ids) {
        return roleMenuRelationDao.getMenuByRoleIds(ids);
    }
}
